package com.zhixiang.wbl.visitor.fragement;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.lidroid.xutils.ViewUtils;


public abstract class BaseFragment extends Fragment {


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        View view = createView(inflater, container, savedInstanceState);
        ViewUtils.inject(this, view);

        initToolBar();

        init();
        initMapView(savedInstanceState);
        return view;

    }

    public void initToolBar() {

    }

    public void initMapView(Bundle savedInstanceState)
    {

    }
    public abstract View createView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState);

    public abstract void init();


}
